/**
 * 
 */
package com.xb.effective1.hash.equals;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author kexue
 *
 */
public class TestMain {
	private  static final Logger logger = LoggerFactory.getLogger(TestMain.class);

	public static void main(String args[]) {

		Map<Student,Long> set = new HashMap<Student,Long>();
		Student student1 = new Student("zhangsan", 1L);
		Student student2 = new Student("zhangsan", 1L);
		Student student3 = new Student("zhangsan", 2L);

		set.put(student1,1L);
		set.put(student2,1L);
		set.put(student3,1L);
		
		for(Student student: set.keySet()){
			logger.info(student.toString());
		}

	}

}
